<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ include file="../../Include/Config.jsp"%>
<html>
  <head>
    <title>Web Ram Program</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link href="ram/style.css" rel="stylesheet" type="text/css">
  </head>
  <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td>
          <!----- header ----------->
          <a href="보고서"><b><font color='red'>report 바로가기</font></b></a>
          <jsp:include page="../../Include/Header.jsp"></jsp:include>
          <!----- header end ----------->
        </td>
      </tr>
      <tr>
        <td>
          <div align="left">
            <table width="1251" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td width="490" valign="top">
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td height="30"><font color="ff3300"><b>Setting</b></font></td>
                    </tr>
                    <tr>
                      <td>&nbsp;</td>
                    </tr>
                    <tr>
                      <td  bgcolor="#DDDDDD">
                        <table width="100%" border="0" cellspacing="1" cellpadding="5">
                          <tr>
                            <td width="221" align="center" bgcolor="#f4f4f4"><strong>Iteration</strong></td>
                            <td align="center" bgcolor="white" width="246">
                              <p align="left"><input type="text" name="formtext1">times</p>
                            </td>
                          </tr>
                          <tr align="center">
                            <td  bgcolor="#f4f4f4" width="221">
                              <p><b>Setting time</b></p>
                            </td>
                            <td align="left" bgcolor="#FFFFFF" width="246">
                              <p align="left">
                                <input type="text" name="formtext1">years
                              </p>
                            </td>
                          </tr>
                          <tr align="center">
                            <td  bgcolor="#f4f4f4" width="221">
                              <p><b>Life Time</b></p>
                            </td>
                            <td align="left" bgcolor="#FFFFFF" width="246">
                              <p align="left"><input type="text" name="formtext1">years</p>
                            </td>
                          </tr>
                          <tr align="center">
                            <td  bgcolor="#f4f4f4" width="221">
                              <p><b>of time division/year</b></p>
                            </td>
                            <td align="left" bgcolor="#FFFFFF" width="246">
                              <p align="left">
                                <input type="text" name="formtext1">times
                              </p>
                            </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                </td>
                <td width="20">&nbsp;</td>
                <td width="490" valign="top">
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td height="30"><font color="ff3300"><b>Resulting</b></font></td>
                    </tr>
                    <tr>
                      <td>&nbsp;</td>
                    </tr>
                    <tr>
                      <td  bgcolor="#DDDDDD">
                        <table width="100%" border="0" cellspacing="1" cellpadding="5">
                          <tr>
                            <td width="277" align="center" bgcolor="#f4f4f4"><strong>Iteration step</strong></td>
                            <td align="center" bgcolor="white" width="190">
                              <p align="left"><input type="text" name="formtext1">th</p>
                            </td>
                          </tr>
                          <tr align="center">
                            <td  bgcolor="#f4f4f4" width="277">
                              <p><b>Repair time of simulation</b></p>
                            </td>
                            <td align="left" bgcolor="#FFFFFF" width="190">
                              <p align="left"><input type="text" name="formtext1">years</p>
                            </td>
                          </tr>
                          <tr align="center">
                            <td  bgcolor="#f4f4f4" width="277">
                              <p><b>Availability</b></p>
                            </td>
                            <td align="left" bgcolor="#FFFFFF" width="190">
                              <p align="left"><input type="text" name="formtext1">%</p>
                            </td>
                          </tr>
                          <tr align="center">
                            <td  bgcolor="#f4f4f4" width="277">
                              <p><b>Ave Running time of simulation</b></p>
                            </td>
                            <td align="left" bgcolor="#FFFFFF" width="190">
                              <p align="left"><input type="text" name="formtext1">years</p>
                            </td>
                          </tr>
                          <tr align="center">
                            <td  bgcolor="#f4f4f4" width="277">
                              <p><b>Ave Repair Time</b></p>
                            </td>
                            <td align="left" bgcolor="#FFFFFF" width="190">
                              <p align="left"><input type="text" name="formtext1">years</p>
                            </td>
                          </tr>
                          <tr align="center">
                            <td width="277" bgcolor="#F4F4F4" height="32">
                              <p><b>Ave Availability Time</b></p>
                            </td>
                            <td width="190" align="left" bgcolor="white" height="32">
                              <p><input type="text" name="formtext1">%</p>
                            </td>
                          </tr>
                        </table></td>
                      </tr>
                    </table>
                    <p>&nbsp;</p>
                  </td>
                  <td width="20">&nbsp;</td>
                  <td width="20" align="left" valign="top">
                    <table width="306" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td height="30"><font color="ff3300"><b>Grapgh</b></font></td>
                      </tr>
                      <tr>
                        <td>&nbsp;</td>
                      </tr>
                      <tr>
                        <td  bgcolor="#DDDDDD">
                          <table width="100%" border="0" cellspacing="1" cellpadding="5">
                            <tr>
                              <td width="295" align="center" bgcolor="#f4f4f4">
                                <p align="center">graph1</p>
                              </td>
                            </tr>
                            <tr align="center">
                              <td  width="295" height="10" bgcolor="white">
                              </td>
                            </tr>
                            <tr align="center">
                              <td  bgcolor="#f4f4f4" width="295">
                                <p>graph2</p>
                              </td>
                            </tr>
                          </table>
                        </td>
                      </tr>
                    </table>
                    <p>&nbsp;</p>
                  </td>
                </tr>
                <tr>
                  <td width="1251" valign="top" colspan="5">&nbsp;</td>
                </tr>
              </table>
              <!---------- 수치값 들어가기 시작 ------------>
              <table width="1251" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td  bgcolor="#DDDDDD">
                    <table width="1251" border="0" cellspacing="1" cellpadding="5">
                      <tr>
                        <td width="80" align="center" bgcolor="#f4f4f4"><strong><b>no</b></strong></td>
                        <td align="center" bgcolor="#f4f4f4" width="47">
                          <p><strong><b>Process</b></strong></p>
                        </td>
                        <td width="47" align="center" bgcolor="#F4F4F4"><b>Equipment</b></td>
                        <td width="47" align="center" bgcolor="#F4F4F4"><b>Tag ID</b></td>
                        <td width="47" align="center" bgcolor="#F4F4F4"><b>Connection</b></td>
                        <td width="47" align="center" bgcolor="#F4F4F4"><b>Failure Rate</b></td>
                        <td width="47" align="center" bgcolor="#F4F4F4"><b>Failure Mode</b></td>
                        <td width="47" align="center" bgcolor="#F4F4F4"><b>Failure</b></td>
                        <td width="47" align="center" bgcolor="#F4F4F4"><b>Impact of</b></td>
                        <td width="47" align="center" bgcolor="#F4F4F4"><b>MTTR(hours)</b></td>
                        <td width="47" align="center" bgcolor="#F4F4F4"><b>Impact of</b></td>
                        <td width="47" align="center" bgcolor="#F4F4F4"><b>Remark1</b></td>
                        <td width="47" align="center" bgcolor="#F4F4F4"><b>MTTF</b></td>
                        <td width="47" align="center" bgcolor="#F4F4F4"><b>Hazard Rate</b></td>
                        <td width="47" align="center" bgcolor="#F4F4F4"><b>Random Num</b></td>
                      </tr>
                      <logic:iterate id="list" name="figList" indexId="count">
                        <tr align="center">
                          <td bgcolor="#FFFFFF">${count}</td>
                          <td align="left" bgcolor="#FFFFFF">&nbsp;</td>
                          <td width="53" align="left" bgcolor="white">${list.figEq}</td>
                          <td width="53" align="left" bgcolor="white">${list.figTagId}</td>
                          <td width="53" align="left" bgcolor="white">${list.figConnect}</td>
                          <td width="53" align="left" bgcolor="white">${list.figFailureRate}</td>
                          <td width="53" align="left" bgcolor="white">${list.figFailureMode}</td>
                          <td width="53" align="left" bgcolor="white">${list.figFailureState}</td>
                          <td width="53" align="left" bgcolor="white">${list.figImpact1}</td>
                          <td width="53" align="left" bgcolor="white">${list.figMttr}</td>
                          <td width="53" align="left" bgcolor="white">${list.figImpact2}</td>
                          <td width="53" align="left" bgcolor="white">${list.figRemark1}</td>
                          <td width="53" align="left" bgcolor="white"><span id="mttf"></span></td>
                          <td width="53" align="left" bgcolor="white"><span id="hazardRate"></span></td>
                          <td width="53" align="left" bgcolor="white"><span id="figRandomNum"></span></td>
                        </tr>                      
                      </logic:iterate>
                    </table>
                  </td>
                </tr>
              </table>
              <!--------- 수치값 들어가기 끝 ------------>
              <p>&nbsp;</p>
              <p>&nbsp;</p>
              <p>&nbsp;</p>
            </div>
            <p align="center">&nbsp;</p>
          </td>
        </tr>
        <tr>
          <td align="center">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td align="center" bgcolor="d6d6d6"><!---<img src="../images/copy.jpg" width="990" height="30">--->
                  Copyright 2011. Korea Institute of Construction Technology
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
      <!------- 시작 부분 시작 ----->
    </body>
  </html>